Optimal. Leaf size=157 \[ \frac {3 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \tan ^{-1}\left (\frac {\sqrt {a} \sin (c+d x)}{\sqrt {2} \sqrt {\cos (c+d x)} \sqrt {a \cos (c+d x)+a}}\right )}{16 \sqrt {2} a^{5/2} d}+\frac {7 \sin (c+d x)}{16 a d \sqrt {\sec (c+d x)} (a \cos (c+d x)+a)^{3/2}}-\frac {\sin (c+d x)}{4 d \sqrt {\sec (c+d x)} (a \cos (c+d x)+a)^{5/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.35, antiderivative size = 157, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 6, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.240, Rules used = {4222, 2765, 2978, 12, 2782, 205} \[ \frac {3 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \tan ^{-1}\left (\frac {\sqrt {a} \sin (c+d x)}{\sqrt {2} \sqrt {\cos (c+d x)} \sqrt {a \cos (c+d x)+a}}\right )}{16 \sqrt {2} a^{5/2} d}+\frac {7 \sin (c+d x)}{16 a d \sqrt {\sec (c+d x)} (a \cos (c+d x)+a)^{3/2}}-\frac {\sin (c+d x)}{4 d \sqrt {\sec (c+d x)} (a \cos (c+d x)+a)^{5/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 205
Rule 2765
Rule 2782
Rule 2978
Rule 4222
Rubi steps
\begin {align*} \int \frac {1}{(a+a \cos (c+d x))^{5/2} \sec ^{\frac {3}{2}}(c+d x)} \, dx &=\left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\cos ^{\frac {3}{2}}(c+d x)}{(a+a \cos (c+d x))^{5/2}} \, dx\\ &=-\frac {\sin (c+d x)}{4 d (a+a \cos (c+d x))^{5/2} \sqrt {\sec (c+d x)}}-\frac {\left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\frac {a}{2}-3 a \cos (c+d x)}{\sqrt {\cos (c+d x)} (a+a \cos (c+d x))^{3/2}} \, dx}{4 a^2}\\ &=-\frac {\sin (c+d x)}{4 d (a+a \cos (c+d x))^{5/2} \sqrt {\sec (c+d x)}}+\frac {7 \sin (c+d x)}{16 a d (a+a \cos (c+d x))^{3/2} \sqrt {\sec (c+d x)}}-\frac {\left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int -\frac {3 a^2}{4 \sqrt {\cos (c+d x)} \sqrt {a+a \cos (c+d x)}} \, dx}{8 a^4}\\ &=-\frac {\sin (c+d x)}{4 d (a+a \cos (c+d x))^{5/2} \sqrt {\sec (c+d x)}}+\frac {7 \sin (c+d x)}{16 a d (a+a \cos (c+d x))^{3/2} \sqrt {\sec (c+d x)}}+\frac {\left (3 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {1}{\sqrt {\cos (c+d x)} \sqrt {a+a \cos (c+d x)}} \, dx}{32 a^2}\\ &=-\frac {\sin (c+d x)}{4 d (a+a \cos (c+d x))^{5/2} \sqrt {\sec (c+d x)}}+\frac {7 \sin (c+d x)}{16 a d (a+a \cos (c+d x))^{3/2} \sqrt {\sec (c+d x)}}-\frac {\left (3 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \operatorname {Subst}\left (\int \frac {1}{2 a^2+a x^2} \, dx,x,-\frac {a \sin (c+d x)}{\sqrt {\cos (c+d x)} \sqrt {a+a \cos (c+d x)}}\right )}{16 a d}\\ &=\frac {3 \tan ^{-1}\left (\frac {\sqrt {a} \sin (c+d x)}{\sqrt {2} \sqrt {\cos (c+d x)} \sqrt {a+a \cos (c+d x)}}\right ) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}}{16 \sqrt {2} a^{5/2} d}-\frac {\sin (c+d x)}{4 d (a+a \cos (c+d x))^{5/2} \sqrt {\sec (c+d x)}}+\frac {7 \sin (c+d x)}{16 a d (a+a \cos (c+d x))^{3/2} \sqrt {\sec (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.70, size = 164, normalized size = 1.04 \[ \frac {\sqrt {\cos (c+d x)} (\cos (c+d x)+1)^{3/2} \sec \left (\frac {1}{2} (c+d x)\right ) \sqrt {\sec (c+d x)} \left (6 \cos ^2\left (\frac {1}{2} (c+d x)\right ) \sqrt {\cos (c+d x)+1} \sin ^{-1}\left (\frac {\sin \left (\frac {1}{2} (c+d x)\right )}{\sqrt {\cos ^2\left (\frac {1}{2} (c+d x)\right )}}\right )-\left (\sin \left (\frac {1}{2} (c+d x)\right )-7 \sin \left (\frac {3}{2} (c+d x)\right )\right ) \sqrt {\frac {\cos (c+d x)}{\cos (c+d x)+1}}\right )}{32 d (a (\cos (c+d x)+1))^{5/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.04, size = 169, normalized size = 1.08 \[ -\frac {3 \, \sqrt {2} {\left (\cos \left (d x + c\right )^{3} + 3 \, \cos \left (d x + c\right )^{2} + 3 \, \cos \left (d x + c\right ) + 1\right )} \sqrt {a} \arctan \left (\frac {\sqrt {2} \sqrt {a \cos \left (d x + c\right ) + a} \sqrt {\cos \left (d x + c\right )}}{\sqrt {a} \sin \left (d x + c\right )}\right ) - \frac {2 \, \sqrt {a \cos \left (d x + c\right ) + a} {\left (7 \, \cos \left (d x + c\right )^{2} + 3 \, \cos \left (d x + c\right )\right )} \sin \left (d x + c\right )}{\sqrt {\cos \left (d x + c\right )}}}{32 \, {\left (a^{3} d \cos \left (d x + c\right )^{3} + 3 \, a^{3} d \cos \left (d x + c\right )^{2} + 3 \, a^{3} d \cos \left (d x + c\right ) + a^{3} d\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{{\left (a \cos \left (d x + c\right ) + a\right )}^{\frac {5}{2}} \sec \left (d x + c\right )^{\frac {3}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.22, size = 222, normalized size = 1.41 \[ -\frac {\sqrt {a \left (1+\cos \left (d x +c \right )\right )}\, \left (-1+\cos \left (d x +c \right )\right )^{4} \cos \left (d x +c \right ) \left (7 \left (\cos ^{2}\left (d x +c \right )\right ) \sqrt {2}\, \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}-4 \cos \left (d x +c \right ) \sqrt {2}\, \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}+3 \cos \left (d x +c \right ) \sin \left (d x +c \right ) \arcsin \left (\frac {-1+\cos \left (d x +c \right )}{\sin \left (d x +c \right )}\right )-3 \sqrt {2}\, \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}+3 \arcsin \left (\frac {-1+\cos \left (d x +c \right )}{\sin \left (d x +c \right )}\right ) \sin \left (d x +c \right )\right ) \sqrt {2}}{32 d \left (\frac {1}{\cos \left (d x +c \right )}\right )^{\frac {3}{2}} \left (\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}\right )^{\frac {5}{2}} \sin \left (d x +c \right )^{9} a^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{{\left (a \cos \left (d x + c\right ) + a\right )}^{\frac {5}{2}} \sec \left (d x + c\right )^{\frac {3}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {1}{{\left (\frac {1}{\cos \left (c+d\,x\right )}\right )}^{3/2}\,{\left (a+a\,\cos \left (c+d\,x\right )\right )}^{5/2}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________